Revert "Bug 701886: Always create new scope for eval()."

This reverts commit d248b0ce18.
This commit is contained in:
Tor Andersson
2021-03-04 12:08:42 +01:00
parent 80e222d91d
commit 9f34a074eb
10 changed files with 7 additions and 42 deletions

View File

@@ -56,7 +56,7 @@ static void Fp_toString(js_State *J)
if (!js_iscallable(J, 0))
js_typeerror(J, "not a function");
if (self->type == JS_CFUNCTION || self->type == JS_CSCRIPT || self->type == JS_CEVAL) {
if (self->type == JS_CFUNCTION || self->type == JS_CSCRIPT) {
js_Function *F = self->u.f.function;
if (js_try(J)) {