Skip to content

Instantly share code, notes, and snippets.

View leobalter's full-sized avatar
💭
status

Leo Balter leobalter

💭
status
  • GitHub Staff
  • Bay Area, CA
View GitHub Profile
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long qw(GetOptions);
my $args = '';
GetOptions(
yarn test-test262
yarn test-test262 v1.0.2
$ babel-node scripts/test262.js
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
harness: Ran 0/181 (0.00%), Passed 0/0 (100%), Failed 0/0 (100%), Skipped 181/181 (100.00%)
intl402: Ran 0/44 (0.00%), Passed 0/0 (10
[~/dev/test262-integrator] (master)⚡
npm test
> [email protected] test /Users/leo/dev/test262-integrator
> node test/test.js
......
Failed: test/built-ins/ArrayBuffer/prototype/byteLength/detached-buffer.js
Test262Error: No method available to detach an ArrayBuffer
op_list = [
("<", lambda a, b: a < b, "less-than"),
("<=", lambda a, b: a <= b, "less-than-or-equal"),
(">", lambda a, b: a > b, "greater-than"),
(">=", lambda a, b: a >= b, "greater-than-or-equal"),
]
# This is the hex representation of Number.MAX_VALUE.
max_value_digits = "0xfffffffffffff8" + "0" * 242

my provisory gist

This is a markdown content, same as in the wiki page.

How do I set it as markdown? The file name has a .md extension.

test262-harness --hostType=d8 -t 4 $(git grep --name-only --extended-regexp "verify(Not)?Configurable" test/)
test262-harness --hostPath=`which js` --hostType=jsshell -t 4 $(git grep --name-only --extended-regexp "verify(Not)?Configurable" test/)
onst getLast = (arr, def) => (arr[arr.length - 1] || def)
const getLastUser = arr => {
const last = getLast(arr, [])
return getLast(last, {})
}
const pushIntoLast = (arr, value) => {
const last = getLast(arr, [])
last.push(value)
@leobalter
leobalter / .profile
Created March 26, 2017 06:48 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
First you need to build JSC. Since it is a module in WebKit, you can follow these instructions to get the code and learn how to build it.
https://webkit.org/getting-started/#building-webkit
After the machine setup, you can build JSC as a stand-alone CLI program running
```<path_to_webkit>/Tools/Scripts/build-jsc —release```
It will build jsc into ```<path_to_webkit>/WebKitBuild/Release```
@leobalter
leobalter / gist:57283b496d281d92cc159827fde4250c
Last active May 10, 2017 15:00
test262-harness shortcuts
test262-harness --hostPath=`which d8` --hostType=d8 --hostArgs='--harmony_regexp_property' $(git diff --cached tc39/master --diff-filter=AM --name-only test/) -t 4
test262-harness --hostPath=`which d8` --hostType=d8 $(git diff --name-only)
test262-harness $(git grep --name-only --extended-regexp 'verify(Not)?Enumerable' test/) # uses node by default
test262-harness --hostPath=`which d8` --hostType=d8 $(git diff --cached --name-only) # added files only
time test262-harness --hostType=jsshell -t 4 --hostPath=`which js` $(git grep --name-only -E 'features\: \[*+object-(rest|spread)' test/language)