We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fec4730 commit 6fdc0e1Copy full SHA for 6fdc0e1
interpreter.js
@@ -357,7 +357,7 @@ Interpreter.prototype.appendCode = function(code) {
357
*/
358
Interpreter.prototype.step = function() {
359
var stack = this.stateStack;
360
- var startTime = Date.now();
+ var endTime = Date.now() + this['POLYFILL_TIMEOUT'];
361
do {
362
var state = stack[stack.length - 1];
363
if (!state) {
@@ -390,7 +390,7 @@ Interpreter.prototype.step = function() {
390
throw Error('Setter not supported in this context');
391
}
392
// This may be polyfill code. Keep executing until we arrive at user code.
393
- } while (!node['end'] && startTime + this['POLYFILL_TIMEOUT'] > Date.now());
+ } while (!node['end'] && endTime > Date.now());
394
return true;
395
};
396
0 commit comments