Skip to content

Instantly share code, notes, and snippets.

View log.txt
Running hooks: 35% (21/60) gn_linux64
________ running '/home/me/sources/chromium/py2-env/bin/python src/third_party/depot_tools/download_from_google_storage.py --no_resume --no_auth --bucket chromium-gn -s src/b
uildtools/linux64/gn.sha1' in '/home/me/sources/chromium'
Failed to fetch file gs://chromium-gn/ed8b2bc0617fee4ebd1d1a35e8a5bc168c4ca874 for src/buildtools/linux64/gn. [Err: [E2018-03-09T21:51:41.810089Z 8982 0 annotate.go:242] orig
inal error: package "infra/python/wheels/cffi/linux-amd64_cp32_abi3" is not registered
[E2018-03-09T21:51:41.810163Z 8982 0 annotate.go:242]
View quizzes.js
// Pop quiz! What gets logged?
var o = {
[console.log('before')]: 4,
foo: (function () {
console.log('nope :(');
throw 'nope'
})(),
[console.log('after')]: 4
View data.js
var data = [{"owner":"towc","timestamp":"2017-10-08T13:03:00.000Z"},{"owner":"Zirak","timestamp":"2017-10-08T12:26:00.000Z"},{"owner":"danidee","timestamp":"2017-10-08T02:43:00.000Z"},{"owner":"Hatter is Mad","timestamp":"2017-10-07T22:48:00.000Z"},{"owner":"towc","timestamp":"2017-10-07T14:25:00.000Z"},{"owner":"towc","timestamp":"2017-10-06T23:40:00.000Z"},{"owner":"Kevin B","timestamp":"2017-10-06T21:52:00.000Z"},{"owner":"towc","timestamp":"2017-10-06T13:35:00.000Z"},{"owner":"towc","timestamp":"2017-10-06T13:31:00.000Z"},{"owner":"rlemon","timestamp":"2017-10-06T13:30:00.000Z"},{"owner":"little pootis","timestamp":"2017-10-06T05:41:00.000Z"},{"owner":"im1dermike","timestamp":"2017-10-05T20:21:00.000Z"},{"owner":"taco","timestamp":"2017-10-05T20:16:00.000Z"},{"owner":"towc","timestamp":"2017-10-05T20:14:00.000Z"},{"owner":"ssube","timestamp":"2017-10-05T20:13:00.000Z"},{"owner":"towc","timestamp":"2017-10-05T20:13:00.000Z"},{"owner":"towc","timestamp":"2017-10-05T20:11:00.000Z"},{"owner":"towc","timestamp
View run-headless.js
// prerequisites:
// $ npm i chrome-remote-interface
// $ chrome --headless --no-gpu --remote-debugging-port=9222
var fs = require('fs');
var repl = require('readline');
var util = require('util');
var cri = require('chrome-remote-interface');
View awesome.diff
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 4e433d9..35930db 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -641,10 +641,7 @@ class V8_EXPORT_PRIVATE DeclarationScope : public Scope {
bool uses_super_property() const { return scope_uses_super_property_; }
bool NeedsHomeObject() const {
- return scope_uses_super_property_ ||
- (inner_scope_calls_eval_ && (IsConciseMethod(function_kind()) ||
View scopes.h.diff
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index ac3e948..60a182f 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -635,10 +635,7 @@ class DeclarationScope : public Scope {
bool uses_super_property() const { return scope_uses_super_property_; }
bool NeedsHomeObject() const {
- return scope_uses_super_property_ ||
- (inner_scope_calls_eval_ && (IsConciseMethod(function_kind()) ||
View bootstrapper.cc.diff
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 95a7f41..9d3caf2 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1679,6 +1679,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
InstallConstant(isolate, symbol_fun, "split", factory->split_symbol());
InstallConstant(isolate, symbol_fun, "toPrimitive",
factory->to_primitive_symbol());
+ InstallConstant(isolate, symbol_fun, "homeObject",
+ factory->home_object_symbol());
View heap-symbols.h.diff
diff --git a/src/heap-symbols.h b/src/heap-symbols.h
index 49285ee..12fde82 100644
--- a/src/heap-symbols.h
+++ b/src/heap-symbols.h
@@ -202,7 +202,6 @@
V(error_start_pos_symbol) \
V(frozen_symbol) \
V(hash_code_symbol) \
- V(home_object_symbol) \
V(intl_initialized_marker_symbol) \
View gist:89551efd75e9f17ecf42ba31b342d0d1
$ ninja -C out/Default/ unit_tests │·················
ninja: Entering directory `out/Default/' │·················
[1/1] LINK ./unit_tests │·················
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -B../../third_party/binutils/Linux_x64/Release/bin -fuse-ld=gold │·················
-Wl,--icf=all -pthread -m64 --sysroot=../../build/linux/debian_wheezy_amd64-sysroot -Wl,-rpath-link=..
View entry.js
import * as foo from './foo';
foo
.bar();