Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
this.strict
1 parent 1985dd6 commit 16e2ac8Copy full SHA for 16e2ac8
2 files changed
javascript/extractor/src/com/semmle/jcorn/Parser.java
@@ -3108,7 +3108,7 @@ protected BlockStatement parseBlock(boolean allowStrict) {
3108
if (stmt != null) body.add(stmt);
3109
if (first && allowStrict && this.isUseStrict(stmt)) {
3110
oldStrict = this.strict;
3111
- this.setStrict(this.strict = true);
+ this.setStrict(true);
3112
}
3113
first = false;
3114
javascript/extractor/tests/strictmode/output/trap/assignargs.js.trap
@@ -196,29 +196,5 @@ successor(#20045,#20048)
196
successor(#20057,#20041)
197
successor(#20038,#20037)
198
successor(#20054,#20038)
199
-#20059=*
200
-js_parse_errors(#20059,#20001,"Error: Assigning to arguments in strict mode"," arguments = 42;
201
-")
202
-#20060=@"loc,{#10000},3,3,3,3"
203
-locations_default(#20060,#10000,3,3,3,3)
204
-hasLocation(#20059,#20060)
205
-#20061=*
206
-lines(#20061,#20001,"function f() {","
207
208
-hasLocation(#20061,#20003)
209
-#20062=*
210
-lines(#20062,#20001," 'use strict';","
211
212
-hasLocation(#20062,#20005)
213
-indentation(#10000,2," ",2)
214
-#20063=*
215
-lines(#20063,#20001," arguments = 42;","
216
217
-hasLocation(#20063,#20007)
218
-indentation(#10000,3," ",2)
219
-#20064=*
220
-lines(#20064,#20001,"}","")
221
-hasLocation(#20064,#20009)
222
-numlines(#20001,4,0,0)
223
numlines(#10000,4,4,0)
224
filetype(#10000,"javascript")
0 commit comments