From 23b1d97b0d757cf6427d86a736b811f13698fd92 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 15 Mar 2020 15:25:43 +0100 Subject: LibJS: Add ObjectPrototype and implement hasOwnProperty() All Objects will now have ObjectPrototype as their prototype, unless overridden. --- Base/home/anon/js/hasOwnProperty.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Base/home/anon/js/hasOwnProperty.js (limited to 'Base/home') diff --git a/Base/home/anon/js/hasOwnProperty.js b/Base/home/anon/js/hasOwnProperty.js new file mode 100644 index 0000000000..26456344ab --- /dev/null +++ b/Base/home/anon/js/hasOwnProperty.js @@ -0,0 +1,2 @@ +var x = "foobar"; +print(x.hasOwnProperty("length")); -- cgit v1.2.3