Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Williams jasonwilliams

View GitHub Profile
@jasonwilliams
jasonwilliams / launch.json
Last active Nov 20, 2019
Launch.json for next.js and firefox debugging
View launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "launch",
"reAttach": true,
View gist:62616cf8a1529411f681e67aec847fa0
This file has been truncated, but you can view the full file.
[src/lib\exec.rs:132] &this = Object(
GcCell {
value: Object {
kind: Ordinary,
internal_slots: {},
properties: {
"Math": Property {
configurable: Some(
false,
View function_object.rs
use crate::environment::lexical_environment::Environment;
use crate::js::value::ValueData;
use crate::syntax::ast::expr::Expr;
/// Sets the functionKind
#[derive(Debug, Copy, Clone)]
pub enum FunctionKind {
Normal,
ClassConstructor,
Generator,
Async,
View webpack.config.js
// Usage webpack --mode production or webpack --mode development
// This will be called from package.json - yarn scripts
const path = require('path');
const webpack = require('webpack');
const config = require('config');
// Plugins
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
View output.txt
[src/lib/lib.rs:31] &tokens = [
Token {
data: Keyword(
Const,
),
pos: Position {
column_number: 1,
line_number: 1,
},
},
View gist:991cc306911c0d88875abe71623b2739
error[E0277]: the trait bound `fn(gc::Gc<js::value::ValueData>, gc::Gc<js::value::ValueData>, std::vec::Vec<gc::Gc<js::value::ValueData>>) -> std::result::Result<gc::Gc<js::value::ValueData>, gc::Gc<js::value::ValueData>> {js::string::get_string_length}: js::value::ToValue` is not satisfied
--> src/lib\js\string.rs:25:14
|
25 | get: to_value(get_string_length),
| ^^^^^^^^ the trait `js::value::ToValue` is not implemented for `fn(gc::Gc<js::value::ValueData>, gc::Gc<js::value::ValueData>, std::vec::Vec<gc::Gc<js::value::ValueData>>) -> std::result::Result<gc::Gc<js::value::ValueData>, gc::Gc<js::value::ValueData>> {js::string::get_string_length}`
|
note: required by `js::value::to_value`
--> src/lib\js\value.rs:632:1
|
View gist:4f8196fef5bc9d2c4bdad807da9f3692
C:\Users\jasew\workspace\servo (master -> origin)
λ .\mach.bat build -d
Compiling bytes v0.4.6
Compiling expat-sys v2.1.6
Compiling harfbuzz-sys v0.2.1
Compiling fontsan v0.4.0 (https://github.com/servo/fontsan#29e879c8)
Compiling heartbeats-simple-sys v0.4.1
Compiling mozangle v0.1.7
Compiling libz-sys v1.0.18
Compiling openssl v0.9.24
View testingPrivateFields.md
class Jason {
    x = 0;
    #y = 'private!';

    foo() {
        console.log(this.x);
        console.log(this.#y);
    }
}
View eslintrc.json
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
View gist:b1a9a9c010cbcb310f16819df274624c
plugins loaded
GoSublime r18.03.16-1: gs.init()
GoSublime r18.03.16-1: sh.init()
GoSublime r18.03.16-1 sh: using shell env GOPATH=C:\Users\jasew\workspace\go
GoSublime r18.03.16-1 sh: using shell env GOROOT=C:\Go
GoSublime r18.03.16-1 sh: using shell env PATH=C:\Go\bin;C:\Users\jasew\workspace\go\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\CMake\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin\;C:\Users\jasew\.cargo\bin;C:\Users\jasew\AppData\Local\Microsoft\WindowsApps;C:\Python27\Scripts;C:\Python27;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64;C:\Program Files (x86)\GnuWin32\bin;C:\Users\jasew\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Program Files\Microsof
You can’t perform that action at this time.