- new value tag
- sling throug hthe property sites
- audit tag examiners
- teach the jits
- ensure TI sanity with new jsids
This file contains 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
/* | |
* Sketch of the API surface we would need to expose | |
* in order to shift the Promise implementation from dom to js/src. | |
*/ | |
namespace JS { | |
/* | |
* Microtask API. | |
* |
This file contains 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
var i = 0; | |
function f() { | |
i++; | |
return f() + 1; | |
} | |
try { | |
f(); | |
} catch (exc) { | |
} |
This file contains 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
for line in (line for line in (line.strip() for line in res.out.split('\n')) if line): | |
... | |
for line in filter(bool, (line.strip() for line in res.out.split('\n'))): | |
... | |
for line in filter(bool, map(lambda ln: ln.strip(), res.out.split('\n'))): | |
... |
This file contains 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* range(start, stop, step=1) { | |
for (var i = start; i < stop; i += step) | |
yield i; | |
} | |
for (var n of range(0, 100, 3)) | |
console.log(n); |
The author of the talk I gave yesterday at PyTennessee is Jim Blandy. Jim is a Mozilla engineer, a go player, a drinker of tea, and one of the most generous people I’ve ever met.
- Are the Church numerals 32-bit integers? Or 64-bit integers? Or do they go on forever?
This file contains 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
unfortunately I don't have the full log, joined the channel too late. | |
... humph asks how to make it so sites like Netflix can't break the developer tools by futzing with window.console ... | |
<@khuey> r- | |
<ehsan> humph: but we can't take that patch! | |
<humph> for sure | |
<humph> but that doesn't mean it can't be written! | |
<ehsan> true! | |
<humph> the world needs more protest patching :) |
How it's written:
2. If O supports named properties, O does not implement an interface with the [Global] or [PrimaryGlobal] extended attribute and P is not an unforgeable property name of O, then:
1. Let creating be true if P is not a supported property name, and false otherwise.
2. If O implements an interface with the [OverrideBuiltins] extended attribute or O does not have an own property named P, then:
1. If creating is false and O does not implement an interface with a named property setter, then Reject.
2. If creating is false or O implements an interface with a named property creator, then:
1. If the result of calling IsDataDescriptor(Desc) is false, then Reject.
- Let operation be the operation used to declare the named property creator if creating is true, or the named property setter if creating is false.
This file contains 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
if returnType is None or returnType.isVoid(): | |
# Nothing to declare | |
return None, False, None, None | |
if returnType.isPrimitive() and returnType.tag() in builtinNames: | |
result = CGGeneric(builtinNames[returnType.tag()]) | |
if returnType.nullable(): | |
result = CGTemplatedType("Nullable", result) | |
return result, False, None, None | |
if returnType.isDOMString(): | |
if isMember: |
OlderNewer