diff options
Diffstat (limited to 'test/sandbox.js')
-rw-r--r-- | test/sandbox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sandbox.js b/test/sandbox.js index edebcabe..c0e9e09b 100644 --- a/test/sandbox.js +++ b/test/sandbox.js @@ -27,7 +27,7 @@ exports.run_code = semver.satisfies(process.version, "0.8") ? function(code, top } : semver.satisfies(process.version, "<0.12") ? run_code_vm : function(code, toplevel, timeout) { if ([ /\basync[ \t]*\([\s\S]*?\)[ \t]*=>/, - /\b(async[ \t]+function|setImmediate|setInterval|setTimeout)\b/, + /\b(async[ \t]+function|Promise|setImmediate|setInterval|setTimeout)\b/, /\basync([ \t]+|[ \t]*#|[ \t]*\*[ \t]*)[^\s()[\]{},.&|!~=*%/+-]+(\s*\(|[ \t]*=>)/, ].some(function(pattern) { return pattern.test(code); |