SHARE
TWEET

Untitled

a guest Dec 14th, 2013 51 Never
  1. Components.utils.import("resource://gre/modules/reflect.jsm") ;
  2. Reflect.parse("42", { builder: {
  3.   program: function program() {
  4.     return 24;
  5.   }
  6. }});
  7. /*
  8. Exception: (function program() {
  9.     return 24;
  10.   }) is not a function
  11. @Scratchpad/2:12
  12. WCA_evalWithDebugger@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/webconsole.js:984
  13. WCA_onEvaluateJS@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/webconsole.js:658
  14. DSC_onPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js:1013
  15. @resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/transport.js:258
  16. @resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:75
  17. */
RAW Paste Data
Top