I hereby claim:
- I am darkwing on github.
- I am davidwalshblog (https://keybase.io/davidwalshblog) on keybase.
- I have a public key ASDG8Gr4ObeuMJbsO6NFQdoN6zLjoEsujmSHRy8uFj-9SAo
To claim this, I am signing this object:
const result = await Promise.race([ | |
new Promise((resolve, reject) => { | |
setTimeout(() => resolve('result!'), 2000); | |
}), | |
new Promise((resolve, reject) => { | |
setTimeout(() => reject('booo!'), 1000); | |
}) | |
]); | |
console.log("result is: ", result); |
console.log('[routes.component.js] componentDidUpdate ---------------------------'); | |
const keyz = Object.keys(this.props); | |
keyz.forEach((key) => { | |
if (this.props[key] !== prevProps[key]) { | |
console.warn('[prop value inequality]: ', key, this.props[key], prevProps[key]); | |
} | |
}); |
scripts:core:dev:standardEntryPoints: [SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'] { | |
line: 1, | |
column: 1, | |
annotated: '\n' + | |
'/Users/davidwalsh/Projects/metamask-extension/node_modules/three/src/loaders/TextureLoader.js:1\n' + | |
"import { ImageLoader } from './ImageLoader.js';\n" + | |
'^\n' + | |
"ParseError: 'import' and 'export' may appear only with 'sourceType: module'", | |
stream: Labeled { | |
_readableState: ReadableState { |
{ | |
"invalidCustomNetwork": { | |
"state": "CLOSED", | |
"networkName": "" | |
}, | |
"unconnectedAccount": { | |
"state": "CLOSED" | |
}, | |
"activeTab": {}, | |
"metamask": { |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The Firefox debugger has undergone a massive rewrite in the last two years, moving away from old Mozilla-specific technologies like XUL etc, to more modern technologies like React, webpack and babel.
[Babel][babel] is a tool for compiling Javascript into Javascript. It generates an [Abstract Syntax Tree (AST)][ast_wiki] which can be transformed, transversed or manipulated in various ways for use. Babel and AST's have played a major part in growth of the modern web tooling ecosystem.
Over the past year, we have used babel extensively in building the debugger, from disabling non-executable lines so breakpoints cannot be set to highlighting out of scope code and much more.
I felt it would be cool to write a couple of blog posts, documenting some of our coolest use cases and looking into some debugger internals as we go.
package Bugzilla::Extension::PhabBugz::WebService; | |
use 5.10.1; | |
use strict; | |
use warnings; | |
use base qw(Bugzilla::WebService); | |
use Bugzilla::Attachment; |
Internal Errors | |
============================== | |
Response { | |
status: 500, // HTTP Code | |
data: { | |
error: "Internal error: {description of error}. This error has been logged and the team will address the problem shortly.", | |
} | |
} | |
Bugzilla |