From 96d918a47ad17c97af56d49d969f4bf18ae73881 Mon Sep 17 00:00:00 2001 From: "szegedia%freemail.hu" Date: Wed, 27 Dec 2006 18:04:25 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20for=20Bug=20347154=20=EF=BF=BD=20Compiler?= =?UTF-8?q?Environs=20examines=20deprecated=20cx.compileFunctionsWithDynam?= =?UTF-8?q?icScopeFlag=20instead=20of=20calling=20cx.hasFeature(Context.FE?= =?UTF-8?q?ATURE=5FDYNAMIC=5FSCOPE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java b/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java index 14bf5af8bba4..8ed1444a8646 100644 --- a/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java +++ b/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java @@ -59,7 +59,7 @@ public class CompilerEnvirons { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); - useDynamicScope = cx.compileFunctionsWithDynamicScopeFlag; + useDynamicScope = cx.hasFeature(Context.FEATURE_DYNAMIC_SCOPE); generateDebugInfo = (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()); reservedKeywordAsIdentifier