class Jason {
x = 0;
#y = 'private!';
foo() {
console.log(this.x);
console.log(this.#y);
}
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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, |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[src/lib\exec.rs:132] &this = Object( | |
GcCell { | |
value: Object { | |
kind: Ordinary, | |
internal_slots: {}, | |
properties: { | |
"Math": Property { | |
configurable: Some( | |
false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[src/lib/lib.rs:31] &tokens = [ | |
Token { | |
data: Keyword( | |
Const, | |
), | |
pos: Position { | |
column_number: 1, | |
line_number: 1, | |
}, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parserOptions": { | |
"ecmaVersion": 2017, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
"experimentalObjectRestSpread": true | |
} | |
}, | |
"rules": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ .\mach.bat build -d | |
********************************************************************** | |
** Visual Studio 2017 Developer Command Prompt v15.0.26430.16 | |
** Copyright (c) 2017 Microsoft Corporation | |
********************************************************************** | |
[vcvarsall.bat] Environment initialized for: 'x64' | |
Installing missing MSVC dependencies... | |
Downloading https://servo-deps.s3.amazonaws.com/msvc-deps/ninja-1.7.1.zip ... | |
Downloading ninja-1.7.1: 100.0% | |
Extracting ninja-1.7.1...done |
NewerOlder