summaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/null_pointer_runme.js
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/javascript/null_pointer_runme.js')
-rw-r--r--Examples/test-suite/javascript/null_pointer_runme.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/null_pointer_runme.js b/Examples/test-suite/javascript/null_pointer_runme.js
new file mode 100644
index 000000000..7c0d61244
--- /dev/null
+++ b/Examples/test-suite/javascript/null_pointer_runme.js
@@ -0,0 +1,9 @@
+var null_pointer = require("null_pointer");
+
+if (!null_pointer.func(null)) {
+ throw new Error("Javascript 'null' should be converted into NULL.");
+}
+
+if (null_pointer.getnull() != null) {
+ throw new Error("NULL should be converted into Javascript 'null'.");
+}