Lines Matching defs:with

2 // Redistribution and use in source and binary forms, with or without
11 // with the distribution.
121 // is only whitespace before it on the line (with comments considered as
212 " f\\u006fr: 'keyword propertyname with escape'};"
278 // Now compile the erroneous code with the good preparse data. If the
433 // as with-content, which made it assume that a function inside
825 // RegExp token with added garbage at the end. The scanner should only
853 // Starting with '=' works too.
938 { " with ({}) ", "{ block; }", " more;", i::WITH_SCOPE, i::SLOPPY },
939 { " with ({}) ", "{ block; }", "; more;", i::WITH_SCOPE, i::SLOPPY },
940 { " with ({}) ", "{\n"
944 { " with ({}) ", "statement;", " more;", i::WITH_SCOPE, i::SLOPPY },
945 { " with ({}) ", "statement", "\n"
947 { " with ({})\n"
1029 // Broken 6 byte encoding with missing last byte.
1033 // Broken 3 byte encoding of \u0fff with missing last byte.
1037 // Broken 3 byte encoding of \u0fff with missing 2 last bytes.
1070 // Broken 2 byte encoding of \u00ff with missing last byte.
1297 "with error:\n"
1308 "with error:\n"
1333 "with error:\n"
1383 { "with ({})", "" },
1419 "with ({}) ;",
1420 "with ({}) {}",
1421 "with ({}) 12",
1485 // interaction with the flags above, so test these separately to reduce
2625 // The test is quite slow, so run it with a reduced set of flags.
2814 // Make it really non-Latin1 (replace the Xs with a non-Latin1 character).
3070 struct { const char* source; bool assigned; bool with; } inners[] = {
3081 { "with ({}) { x = 1; }", true, true },
3087 { "with ({}) (function() { x = 0; })", true, true },
3103 { "with ({}) {}", false, true },
3104 { "var x; { with ({}) { x = 1; } }", false, true },
3106 { "try {} catch(x) { with ({}) { x = 1; } }", false, true },
3132 if (outers[i].strict && inners[j].with) continue;
3238 // Parameter lists with extra parens should be recognized as errors.
3305 // The test is quite slow, so run it with a reduced set of flags.
3346 // Those are comma-separated expressions, with arrow functions as items.
3498 "with",
3960 "class C { method() { with ({}) {} } }",
3961 "class C extends function() { with ({}) {} } {}",
3962 "class C { *method() { with ({}) {} } }",