- Assert: length is an integer Number ≥ 0.
- If length is -0, let length be +0.
- Let isArray be ? IsArray(originalArray).
- If isArray is false, return ? ArrayCreate(length).
- Let C be ? Get(originalArray,
"constructor"
). - If IsConstructor(C) is true, then
- Let thisRealm be the current Realm Record.
- Let realmC be ? GetFunctionRealm(C).
- If thisRealm and realmC are not the same Realm Record, then
- If SameValue(C, realmC.[[Intrinsics]].[[%Array%]]) is true, let C be undefined.
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/browser/devtools/webconsole/console-output.js b/browser/devtools/webconsole/console-output.js | |
--- a/browser/devtools/webconsole/console-output.js | |
+++ b/browser/devtools/webconsole/console-output.js | |
@@ -831,16 +831,17 @@ Messages.Simple.prototype = Heritage.ext | |
if (this.element) { | |
return this; | |
} | |
let timestamp = new Widgets.MessageTimestamp(this, this.timestamp).render(); | |
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
#define JSPROP_IGNORE_ENUMERATE 0x1000 /* ignore the value in JSPROP_ENUMERATE. | |
This flag only valid when defining over | |
an existing property. */ | |
#define JSPROP_IGNORE_READONLY 0x2000 /* ignore the value in JSPROP_READONLY. | |
This flag only valid when defining over | |
an existing property. */ | |
#define JSPROP_IGNORE_PERMANENT 0x4000 /* ignore the value in JSPROP_PERMANENT. */ | |
#define JSPROP_ENUMERATE 0 |
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
#define JSPROP_IGNORE_ENUMERATE 0x1000 /* ignore the value in JSPROP_ENUMERATE. | |
This flag only valid when defining over | |
an existing property. */ | |
#define JSPROP_IGNORE_READONLY 0x2000 /* ignore the value in JSPROP_READONLY. | |
This flag only valid when defining over | |
an existing property. */ | |
#define JSPROP_IGNORE_PERMANENT 0x4000 /* ignore the value in JSPROP_PERMANENT. */ | |
#define JSPROP_ENUMERATE 0 |
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
var object = { | |
__proto__: { | |
}, | |
a: 1, | |
b: 2, | |
c: 3 | |
} | |
for (var x in object) { |
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
import csv | |
import requests | |
from bs4 import BeautifulSoup | |
import os | |
import uuid | |
import threading | |
import urlparse | |
import curses | |
f = open("top-1m.csv") |
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
1and1.com/27f571d5-b825-44b5-917d-d37da2828c21src:prototype.__defineGetter__&&o | |
1and1.com/27f571d5-b825-44b5-917d-d37da2828c21src:prototype.__defineGetter__(c, | |
1and1.com/27f571d5-b825-44b5-917d-d37da2828c21src:prototype.__defineSetter__&&o | |
1and1.com/27f571d5-b825-44b5-917d-d37da2828c21src:prototype.__defineSetter__(c, | |
1and1.es/8dc7acbd-b9ed-4821-b639-7fc35d00c18esrc:prototype.__defineGetter__&&o | |
1and1.es/8dc7acbd-b9ed-4821-b639-7fc35d00c18esrc:prototype.__defineGetter__(c, | |
1and1.es/8dc7acbd-b9ed-4821-b639-7fc35d00c18esrc:prototype.__defineSetter__&&o | |
1and1.es/8dc7acbd-b9ed-4821-b639-7fc35d00c18esrc:prototype.__defineSetter__(c, | |
1and1.fr/2b878ac1-d7f4-43b4-a0d6-9ffc02225d03src:prototype.__defineGetter__&&o | |
1and1.fr/2b878ac1-d7f4-43b4-a0d6-9ffc02225d03src:prototype.__defineGetter__(c, |
ECMAScript proposal, specs, tests, and reference implementation for String.prototype.trimStart/trimEnd (plus trimLeft/trimRight).
This initial proposal was drafted by @sebmarkbage and the updated spec was drafted by @evilpie with input from @ljharb.
This proposal is currently at stage 1 of the process.
Designated TC39 reviewers: ?
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>test</title> | |
<style> | |
td { | |
white-space: nowrap; | |
} |
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
let canvas = Dom_html.getElementById("test-canvas"); | |
let gl = WebGL.getContext(Js.coerce canvas Dom_html.CoerceTo.canvas (fun _ => assert false)); | |
Graphics.clear(gl, {r: 1.0, g: 0.7, b: 1.0, a: 1.0}); | |
gl.clearColor(1.0, 0.7, 1.0, 1.0); |