summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/keywords
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/keywords')
-rw-r--r--js/src/tests/test262/language/keywords/browser.js0
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-break.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-case.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-catch.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-continue.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-default.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-delete.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-do.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-else.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-finally.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-for.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-function.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-if.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-in.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-instanceof.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-new.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-return.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-switch.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-this.js24
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-throw.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-try.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-typeof.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-var.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-void.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-while.js21
-rw-r--r--js/src/tests/test262/language/keywords/ident-ref-with.js21
-rw-r--r--js/src/tests/test262/language/keywords/shell.js0
27 files changed, 528 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/keywords/browser.js b/js/src/tests/test262/language/keywords/browser.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/browser.js
diff --git a/js/src/tests/test262/language/keywords/ident-ref-break.js b/js/src/tests/test262/language/keywords/ident-ref-break.js
new file mode 100644
index 0000000000..af0007cbef
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-break.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.1
+description: Checking if execution of "break=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+break = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-case.js b/js/src/tests/test262/language/keywords/ident-ref-case.js
new file mode 100644
index 0000000000..5140cd46d8
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-case.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.2
+description: Checking if execution of "case=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+case = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-catch.js b/js/src/tests/test262/language/keywords/ident-ref-catch.js
new file mode 100644
index 0000000000..0079c4a873
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-catch.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.3
+description: Checking if execution of "catch=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+catch = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-continue.js b/js/src/tests/test262/language/keywords/ident-ref-continue.js
new file mode 100644
index 0000000000..abd27743df
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-continue.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.4
+description: Checking if execution of "contunue=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+continue = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-default.js b/js/src/tests/test262/language/keywords/ident-ref-default.js
new file mode 100644
index 0000000000..b7e1cb4a19
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-default.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.5
+description: Checking if execution of "default=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+default = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-delete.js b/js/src/tests/test262/language/keywords/ident-ref-delete.js
new file mode 100644
index 0000000000..9465de9a18
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-delete.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.6
+description: Checking if execution of "delete=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+delete = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-do.js b/js/src/tests/test262/language/keywords/ident-ref-do.js
new file mode 100644
index 0000000000..1aa9050289
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-do.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.7
+description: Checking if execution of "do=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+do = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-else.js b/js/src/tests/test262/language/keywords/ident-ref-else.js
new file mode 100644
index 0000000000..6436984a2a
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-else.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.8
+description: Checking if execution of "else=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+else = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-finally.js b/js/src/tests/test262/language/keywords/ident-ref-finally.js
new file mode 100644
index 0000000000..fef8034d1a
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-finally.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.9
+description: Checking if execution of "finally=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+finally = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-for.js b/js/src/tests/test262/language/keywords/ident-ref-for.js
new file mode 100644
index 0000000000..9f228836a9
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-for.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.10
+description: Checking if execution of "for=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+for = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-function.js b/js/src/tests/test262/language/keywords/ident-ref-function.js
new file mode 100644
index 0000000000..5567fb4aa9
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-function.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.11
+description: Checking if execution of "function=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+function = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-if.js b/js/src/tests/test262/language/keywords/ident-ref-if.js
new file mode 100644
index 0000000000..8648fe5632
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-if.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.12
+description: Checking if execution of "if=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+if = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-in.js b/js/src/tests/test262/language/keywords/ident-ref-in.js
new file mode 100644
index 0000000000..852a703f75
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-in.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.13
+description: Checking if execution of "in=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+in = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-instanceof.js b/js/src/tests/test262/language/keywords/ident-ref-instanceof.js
new file mode 100644
index 0000000000..ca9a2c5a8e
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-instanceof.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.14
+description: Checking if execution of "instanceof=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+instanceof = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-new.js b/js/src/tests/test262/language/keywords/ident-ref-new.js
new file mode 100644
index 0000000000..0b98569cf1
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-new.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.15
+description: Checking if execution of "new=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+new = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-return.js b/js/src/tests/test262/language/keywords/ident-ref-return.js
new file mode 100644
index 0000000000..ca6cd62ddf
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-return.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.16
+description: Checking if execution of "return=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+return = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-switch.js b/js/src/tests/test262/language/keywords/ident-ref-switch.js
new file mode 100644
index 0000000000..0fbeb95b26
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-switch.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.17
+description: Checking if execution of "switch=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+switch = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-this.js b/js/src/tests/test262/language/keywords/ident-ref-this.js
new file mode 100644
index 0000000000..c990b5a34c
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-this.js
@@ -0,0 +1,24 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.18
+description: Checking if execution of "this=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+// It's tempting to write `this = 0`, but that'd be a test to validate `this`
+// is not a valid simple assignment target, cf. tests in language/expressions/assignment.
+// Also see: sec-semantics-static-semantics-isvalidsimpleassignmenttarget
+({this});
diff --git a/js/src/tests/test262/language/keywords/ident-ref-throw.js b/js/src/tests/test262/language/keywords/ident-ref-throw.js
new file mode 100644
index 0000000000..7e7c056beb
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-throw.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.19
+description: Checking if execution of "throw=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+throw = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-try.js b/js/src/tests/test262/language/keywords/ident-ref-try.js
new file mode 100644
index 0000000000..d073bd6309
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-try.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.20
+description: Checking if execution of "try=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+try = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-typeof.js b/js/src/tests/test262/language/keywords/ident-ref-typeof.js
new file mode 100644
index 0000000000..c36d7e98d1
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-typeof.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.21
+description: Checking if execution of "typeof=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+typeof = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-var.js b/js/src/tests/test262/language/keywords/ident-ref-var.js
new file mode 100644
index 0000000000..9170ba7b68
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-var.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.22
+description: Checking if execution of "var=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+var = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-void.js b/js/src/tests/test262/language/keywords/ident-ref-void.js
new file mode 100644
index 0000000000..06c8087a0a
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-void.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.23
+description: Checking if execution of "void=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+void = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-while.js b/js/src/tests/test262/language/keywords/ident-ref-while.js
new file mode 100644
index 0000000000..8b6398aa79
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-while.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.24
+description: Checking if execution of "while=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+while = 1;
diff --git a/js/src/tests/test262/language/keywords/ident-ref-with.js b/js/src/tests/test262/language/keywords/ident-ref-with.js
new file mode 100644
index 0000000000..5ea4ddf4c0
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/ident-ref-with.js
@@ -0,0 +1,21 @@
+// |reftest| error:SyntaxError
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-identifiers-static-semantics-early-errors
+es5id: 7.6.1.1_A1.25
+description: Checking if execution of "with=1" fails
+info: |
+ Identifier : IdentifierName but not ReservedWord
+
+ It is a Syntax Error if StringValue of IdentifierName is the same String
+ value as the StringValue of any ReservedWord except for yield.
+negative:
+ phase: parse
+ type: SyntaxError
+---*/
+
+$DONOTEVALUATE();
+
+with = 1;
diff --git a/js/src/tests/test262/language/keywords/shell.js b/js/src/tests/test262/language/keywords/shell.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/language/keywords/shell.js