Skip to content

Instantly share code, notes, and snippets.

View evilpie's full-sized avatar

Tom Schuster evilpie

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
td {
white-space: nowrap;
}

String.prototype.trimStart / String.prototype.trimEnd

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: ?

  1. Assert: length is an integer Number ≥ 0.
  2. If length is -0, let length be +0.
  3. Let isArray be ? IsArray(originalArray).
  4. If isArray is false, return ? ArrayCreate(length).
  5. Let C be ? Get(originalArray, "constructor").
  6. If IsConstructor(C) is true, then
    1. Let thisRealm be the current Realm Record.
    2. Let realmC be ? GetFunctionRealm(C).
    3. If thisRealm and realmC are not the same Realm Record, then
  7. If SameValue(C, realmC.[[Intrinsics]].[[%Array%]]) is true, let C be undefined.
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,
import csv
import requests
from bs4 import BeautifulSoup
import os
import uuid
import threading
import urlparse
import curses
f = open("top-1m.csv")
var object = {
__proto__: {
},
a: 1,
b: 2,
c: 3
}
for (var x in object) {
#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
#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
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();
diff --git a/js/public/StructuredClone.h b/js/public/StructuredClone.h
--- a/js/public/StructuredClone.h
+++ b/js/public/StructuredClone.h
@@ -235,11 +235,14 @@ JS_ReadTypedArray(JSStructuredCloneReade
JS_PUBLIC_API(bool)
JS_WriteUint32Pair(JSStructuredCloneWriter *w, uint32_t tag, uint32_t data);
JS_PUBLIC_API(bool)
JS_WriteBytes(JSStructuredCloneWriter *w, const void *p, size_t len);