From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- js/xpconnect/tests/chrome/file_expandosharing.jsm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 js/xpconnect/tests/chrome/file_expandosharing.jsm (limited to 'js/xpconnect/tests/chrome/file_expandosharing.jsm') diff --git a/js/xpconnect/tests/chrome/file_expandosharing.jsm b/js/xpconnect/tests/chrome/file_expandosharing.jsm new file mode 100644 index 0000000000..78718b28ec --- /dev/null +++ b/js/xpconnect/tests/chrome/file_expandosharing.jsm @@ -0,0 +1,10 @@ +var EXPORTED_SYMBOLS = ['checkFromJSM']; + +function checkFromJSM(target, is_op) { + is_op(target.numProp, 42, "Number expando works"); + is_op(target.strProp, "foo", "String expando works"); + // If is_op is todo_is, target.objProp will be undefined. + try { + is_op(target.objProp.bar, "baz", "Object expando works"); + } catch(e) { is_op(0, 1, "No object expando"); } +} \ No newline at end of file -- cgit v1.2.3