mirror of https://github.com/tc39/test262.git
Add tests for invalid expressions with import() with early ReferenceErrors
This commit is contained in:
parent
d641be96b4
commit
a347df3aae
|
@ -0,0 +1,46 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and UpdateExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
UpdateExpressions
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Update Expressions
|
||||
Static Semantics: Early Errors
|
||||
|
||||
UpdateExpression:
|
||||
LeftHandSideExpression++
|
||||
LeftHandSideExpression--
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('')++
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') -= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') <<= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') >>= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') >>>= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') &= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') ^= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') |= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') **= 1;
|
|
@ -0,0 +1,46 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and UpdateExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
UpdateExpressions
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Update Expressions
|
||||
Static Semantics: Early Errors
|
||||
|
||||
UpdateExpression:
|
||||
LeftHandSideExpression++
|
||||
LeftHandSideExpression--
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('')--
|
|
@ -0,0 +1,46 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
UpdateExpressions
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Update Expressions
|
||||
Static Semantics: Early Errors
|
||||
|
||||
UpdateExpression:
|
||||
++UnaryExpression
|
||||
--UnaryExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
++import('')
|
|
@ -0,0 +1,46 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and UnaryExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
UpdateExpressions
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Update Expressions
|
||||
Static Semantics: Early Errors
|
||||
|
||||
UpdateExpression:
|
||||
++UnaryExpression
|
||||
--UnaryExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
--import('')
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') = 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') *= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') /= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') %= 1;
|
|
@ -0,0 +1,48 @@
|
|||
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
description: >
|
||||
ImportCall is a valid CallExpression and LHSExpression, but it is an invalid
|
||||
AssginmentTargetType then it should throw a ReferenceError if used in some
|
||||
LHS Expression of a AssignmentExpression production
|
||||
esid: prod-ImportCall
|
||||
info: |
|
||||
Assignment Operators
|
||||
Static Semantics: Early Errors
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
AssignmentExpression : LeftHandSideExpression AssignmentOperator AssignmentExpression
|
||||
|
||||
- It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
||||
|
||||
LeftHandSideExpression:
|
||||
NewExpression
|
||||
CallExpression
|
||||
|
||||
CallExpression:
|
||||
ImportCall
|
||||
|
||||
Left-Hand-Side Expressions
|
||||
Static Semantics: AssignmentTargetType
|
||||
#sec-static-semantics-static-semantics-assignmenttargettype
|
||||
|
||||
CallExpression :
|
||||
MemberExpressionArguments
|
||||
SuperCall
|
||||
ImportCall
|
||||
CallExpressionArguments
|
||||
CallExpressionTemplateLiteral
|
||||
|
||||
1. Return invalid
|
||||
negative:
|
||||
phase: parse
|
||||
type: ReferenceError
|
||||
features: [dynamic-import]
|
||||
---*/
|
||||
|
||||
throw "Test262: This statement should not be evaluated.";
|
||||
|
||||
import('') += 1;
|
Loading…
Reference in New Issue