summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/modulus/line-terminator.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/expressions/modulus/line-terminator.js')
-rw-r--r--js/src/tests/test262/language/expressions/modulus/line-terminator.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/expressions/modulus/line-terminator.js b/js/src/tests/test262/language/expressions/modulus/line-terminator.js
new file mode 100644
index 0000000000..8976067330
--- /dev/null
+++ b/js/src/tests/test262/language/expressions/modulus/line-terminator.js
@@ -0,0 +1,29 @@
+// Copyright (C) 2019 Leo Balter. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-multiplicative-operators-runtime-semantics-evaluation
+description: Line terminator between the operands of a modulus operator
+info: |
+ MultiplicativeExpression[Yield, Await]:
+ ExponentiationExpression
+ MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
+
+ MultiplicativeOperator : one of
+ * / %
+---*/
+
+var x = 18
+
+%
+
+7
+
+%
+
+3
+;
+
+assert.sameValue(x, 1);
+
+reportCompare(0, 0);