file_expandosharing.jsm 394 B

1234567891011
  1. this.EXPORTED_SYMBOLS = ['checkFromJSM'];
  2. this.checkFromJSM = function checkFromJSM(target, is_op) {
  3. is_op(target.numProp, 42, "Number expando works");
  4. is_op(target.strProp, "foo", "String expando works");
  5. // If is_op is todo_is, target.objProp will be undefined.
  6. try {
  7. is_op(target.objProp.bar, "baz", "Object expando works");
  8. } catch(e) { is_op(0, 1, "No object expando"); }
  9. }