Index: src/runtime.js |
diff --git a/src/runtime.js b/src/runtime.js |
index 7d82dfa8463fac3305ca98f42dd9a5545444a40c..a67866fc8d20cab42719038a18bd9eff14df0190 100644 |
--- a/src/runtime.js |
+++ b/src/runtime.js |
@@ -223,6 +223,14 @@ function MOD(y) { |
} |
+// ECMA-262, section 11.5.3, page 49. |
+function EXP(y) { |
+ var x = IS_NUMBER(this) ? this : %NonNumberToNumber(this); |
+ if (!IS_NUMBER(y)) y = %NonNumberToNumber(y); |
+ return %_MathPow(x, y); |
+} |
+ |
+ |
/* ------------------------------------------- |
- - - B i t o p e r a t i o n s - - - |