fix buildExternalHelpers whitelist not including underscored helpers - fixes #2940
This commit is contained in:
@@ -387,5 +387,10 @@ suite("api", function () {
|
||||
assert.ok(script.indexOf("classCallCheck") === -1);
|
||||
assert.ok(script.indexOf("inherits") === -1);
|
||||
});
|
||||
|
||||
test("underscored", function () {
|
||||
var script = buildExternalHelpers(["typeof"]);
|
||||
assert.ok(script.indexOf("typeof") >= 0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user