Skip to content

Commit

Permalink
Merge pull request #49 from zhangzhuang15/dev
Browse files Browse the repository at this point in the history
blog: rm tq from promise-resolve, to deploy successfully
  • Loading branch information
zhangzhuang15 authored Nov 1, 2024
2 parents 87ca363 + 882b0e9 commit b6dfd46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/blog/promise-resolve.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Promise.resolve()
先看看 promise-resolve.tq:

```tq
```txt
// https://tc39.es/ecma262/#sec-promise.resolve
transitioning builtin
PromiseResolve(implicit context: Context)(
Expand Down Expand Up @@ -239,7 +239,7 @@ ResolvePromise(implicit context: Context)(

先瞧瞧 `PromiseResolve`:

```tq
```txt
transitioning builtin
PromiseResolve(implicit context: Context)(
constructor: JSReceiver, value: JSAny): JSAny {
Expand Down Expand Up @@ -297,7 +297,7 @@ PromiseResolve(implicit context: Context)(

这代码,废话连篇,简化版就是:

```tq
```txt
transitioning builtin
PromiseResolve(implicit context: Context)(
constructor: JSReceiver, value: JSAny): JSAny {
Expand Down Expand Up @@ -353,7 +353,7 @@ PromiseResolve(implicit context: Context)(

那就看看呗:

```tq
```txt
// https://tc39.es/ecma262/#sec-promise-resolve-functions
transitioning builtin
ResolvePromise(implicit context: Context)(
Expand Down Expand Up @@ -460,7 +460,7 @@ ResolvePromise(implicit context: Context)(

废话连篇,怎么能忍,上简化版:

```tq
```txt
// https://tc39.es/ecma262/#sec-promise-resolve-functions
transitioning builtin
ResolvePromise(implicit context: Context)(
Expand Down

0 comments on commit b6dfd46

Please sign in to comment.