Now where you are a collaborator you have certain powers that you should use carefully, so I'm listing some guidelines here.
Even though as a contributor you could push directly to master, please don't do that. Instead each bug fix or feature
#!/usr/bin/env node | |
const fs = require('fs') | |
const path = require('path') | |
function bySizeThenByName(a, b) { | |
if (a.size === b.size) { | |
return a.path.localeCompare(b) | |
} | |
return a.size < b.size |
#!/bin/bash | |
replacements=( | |
"NanAsyncWorker/Nan::AsyncWorker" | |
"NanAsyncQueueWorker/Nan::AsyncQueueWorker" | |
"NanCallback/Nan::Callback" | |
"NanSetInternalFieldPointer/Nan::SetInternalFieldPointer" | |
"NanGetInternalFieldPointer/Nan::GetInternalFieldPointer" | |
"NanNewBufferHandle\\(([^;]+);/Nan::NewBuffer(\\1.ToLocalChecked();" | |
"(NanNew(<(v8::)?String>)?\\(\"[^\"]*\"\\))/\\1.ToLocalChecked()" |
var cards = document.getElementsByClassName("smallTitleCard"), s = [], title;
for (var i = 0; i < cards.length; i++) {
title = cards.item(i).attributes.getNamedItem('aria-label').textContent;
Steps to checkout v8 source and initialize it properly. This includes tests, d8 and example projects.
## get source and initialize dependencies
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git && cd depot_tools
export PATH=`pwd`:$PATH
cd ../
mkdir v8_checkout && cd v8_checkout
Table of Contents generated with DocToc
In case this doesn't work in your browser.
Outlines how binary flags work.
var alive = parseInt('0001', 2);
It is not usually recommended to reuse errors since the stack trace is attached whenever the error is instantiated.
However in some cases the overhead of doing that may affect performance, especially if the error is an exception that is known to occur frequently and is handled.
Only in these cases it may be advantagous to reuse the created Error
. In all other cases getting a full stacktrace created at the time the exception occurs is to be preferred as it gives much better information needed to debug the problem.
➝ node errors.js