forked from mirrors/gecko-dev
Also change .eslintignore to cover the other directories. This also fixes the indentation the automatic fixer messed up in a few XHTML files. Differential Revision: https://phabricator.services.mozilla.com/D158503
12 lines
380 B
JavaScript
12 lines
380 B
JavaScript
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");
|
|
}
|
|
}
|