Real unit test (isolation, no children render)
Calls:
- constructor
- render
export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);
type DeepPartial = {
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" href="./style.css"> | |
</head> | |
<body> |
let N = 10 | |
let source = [] | |
let M = 4 | |
for (let i = 0; i < N; i++) { | |
let len = Math.floor(Math.random() * 5) + 5 | |
let item = [] | |
for (let j = 0; j < len; j++) item.push(Math.floor(Math.random() * 10)) | |
source.push(item) |
function Promise(excutor) { | |
let self = this; | |
self.status = 'pending'; | |
self.value = null; | |
self.reason = null; | |
self.onFulfilledCallbacks = []; | |
self.onRejectedCallbacks = []; | |
function resolve(value) { | |
if(self.status === 'pending') { |
var proxyContext = function(ctx) { | |
return new Proxy(ctx, { | |
get(obj, prop) { | |
if (prop in obj) { | |
return obj[prop]; | |
} | |
const newCtx = proxyContext(ctx.clone()); | |
if (prop in rules) { | |
let re = newCtx.addRule(rules[prop]); | |
return re; |
On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.
Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?
It's disappointing for all of us to find the work we were doing interrup
import JavaScriptCore | |
import Foundation | |
let context = JSContext()! | |
import JavaScriptCore | |
@objc protocol MovieJSExports: JSExport { | |
var title: String { get set } | |
var price: String { get set } |