This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (typeof define === "function" | |
| ? define | |
| : function (_, f) { | |
| if ( typeof exports === "object" ) { | |
| f(exports); | |
| } else { | |
| f(this); | |
| } | |
| })(["exports"], function (exports) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # DSL in grammar.coffee | |
| o = (patternString, action, options) -> | |
| patternString = patternString.replace /\s{2,}/g, ' ' | |
| return [patternString, '$$ = $1;', options] unless action | |
| action = if match = unwrap.exec action then match[1] else "(#{action}())" | |
| action = action.replace /\bnew /g, '$&yy.' | |
| action = action.replace /\b(?:Block\.wrap|extend)\b/g, 'yy.$&' | |
| action = action.replace /(this\.\$)/g, '@' | |
| console.log action | |
| [patternString, "$$ = #{action};", options] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
| index afa2125..2afdbb8 100644 | |
| --- a/js/src/jsobj.cpp | |
| +++ b/js/src/jsobj.cpp | |
| @@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
| fprintf(stderr, "false"); | |
| } else if (v.isMagic()) { | |
| fprintf(stderr, "<invalid"); | |
| -#ifdef DEBUG | |
| switch (v.whyMagic()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Load the actor definition. | |
| DebuggerServer.addActors("chrome://global/content/devtools/dbg-profiler-actors.js"); | |
| // Define a global-scoped actor | |
| function ProfilerActor(aConnection, aRootActor) | |
| { | |
| this._conn = aConnection; | |
| this._profiler = Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler); | |
| this._started = false; | |
| } | |
| ProfilerActor.prototype = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _discoverScriptsAndSources: function TA__discoverScriptsAndSources() { | |
| let scriptsAdded = []; | |
| for (let s of this.dbg.findScripts()) { | |
| if (!this._allowSource(s.url)) { | |
| continue; | |
| } | |
| scriptsAdded.push(this._addScript(s)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| function errorAndExit { | |
| echo "Error building, see '.build-error.log' file" | |
| say "Error! Error! Error!" | |
| exit 1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object.defineProperty(window, "sourceMaps", { | |
| get: function () { | |
| delete window.sourceMap; | |
| window.sourceMap = require("source-map"); | |
| return window.sourceMap; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . $topsrcdir/browser/config/mozconfig | |
| mk_add_options MOZ_MAKE_FLAGS="-s -j8" | |
| ac_add_options --enable-tests | |
| mk_add_options AUTOCLOBBER=1 | |
| # Using ccache will speed up incremental builds a ton. | |
| # See https://developer.mozilla.org/en-US/docs/ccache | |
| # ac_add_options --with-ccache=/usr/local/bin/ccache | |
| # Enable if you ever need to use the gecko profiler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Components.utils.evalInSandbox("" + function one(fn) { two(fn); }, | |
| gDebuggee, | |
| "1.8", | |
| "http://example.com/one.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function go_(machine, step) { | |
| while(!step.done) { | |
| try { | |
| var arr = step(), | |
| state = arr[0], | |
| value = arr[1]; | |
| switch (state) { | |
| case "park": | |
| setImmediate(function() { go_(machine, step); }); |