profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/camsong/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Cam Song camsong Alibaba - 会影 Hangzhou, China 阿里巴巴前端工程师,想用最新的技术打造最酷的用户体验?那就联系我吧👌

camsong/blog 3479

✍️Front-end Development Thoughts

alibaba/pont 2319

🌉数据服务层解决方案

alibaba/kiwi 1715

🐤 Kiwi-国际化全流程解决方案

camsong/fetch-jsonp 940

Make JSONP request like window.fetch

camsong/chrome-github-mate 361

Chrome extension to make single file download effortless and with more features

camsong/fetch-ie8 276

A window.fetch JavaScript polyfill supporting IE8

camsong/fetch-detector 38

检测浏览器版本判断是否支持 Fetch

camsong/babel-npm-boilerplate 14

A Boilerplate for creating NPM packages using Babel, ESLint, Mocha and Chai

camsong/bravo-bootstrap-rails 4

A pure gem just adds bootstrap to your Rails project.

camsong/bravo-generators 2

A collection of useful Rails generator scripts

release graphql/graphql-js

v16.0.0-alpha.4

released time in 19 minutes

release hotwired/turbo

v7.0.0-beta.7

released time in 23 minutes

pull request commenttc39/ecma262

Some changes to make the doc more beginner-friendly

Looks like we have 2 LGTMs then, but @ljharb's wasn't properly registered since it's a comment.

tomayac

comment created time in 24 minutes

issue openednefe/number-precision

Multiplication issue

I'm trying to multiply 9.700000042 and 1000000000 using the times method. It should show 9700000042 as the final result. But it's returning 9700000041.999998. please help.

created time in 2 hours

startednessjs/ness

started time in 3 hours

startedQwicen/node

started time in 4 hours

pull request commentreduxjs/redux

Remove now-deleted Flow example from docs

:heavy_check_mark: Deploy Preview for redux-docs ready!

:hammer: Explore the source changes: c41102abdbe465dbdbed63b918b6b9fee77cc5ab

:mag: Inspect the deploy log: https://app.netlify.com/sites/redux-docs/deploys/60c6dcf227d4230008f3fca1

:sunglasses: Browse the preview: https://deploy-preview-4108--redux-docs.netlify.app

Nezteb

comment created time in 5 hours

pull request commentreduxjs/redux

Remove now-deleted Flow example from docs

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c41102abdbe465dbdbed63b918b6b9fee77cc5ab:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
Nezteb

comment created time in 5 hours

PR opened reduxjs/redux

Remove now-deleted Flow example from docs

The links and CodeSandbox iframe in the "Todos w/ Flow" example are broken: https://redux.js.org/introduction/examples#todos-w-flow

The actual example files were removed in a previous commit: https://github.com/reduxjs/redux/commit/ebf125297430ce33ea7b21279445bbb935092ed8#diff-c590b3c924c35c2f241746522284e4709df490d73a38aaa7d6de4ed1eac2f546

This PR just removes the references to the now-deleted example.

+0 -18

0 comment

1 changed file

pr created time in 5 hours

startedinterpretml/interpret

started time in 5 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

https://github.com/mysticatea/ecma262/commit/757927687ee99e96e9e39a88f6122716cc3088f2

That may be a candidate to patch this issue.

  1. Remove two passes parsing from 22.2.3.2.3 Static Semantics: ParsePattern ( patternText, u ). It parses the pattern with [+N] always. This should be no problem because there are no other differences than allowing named backreferences.
  2. Add an Annex B section to extend 22.2.3.2.3 Static Semantics: ParsePattern ( patternText, u ) to introduce two passes parsing for backward compatibility about \k.
mysticatea

comment created time in 6 hours

startedtailwind-mobile/tailwind-mobile

started time in 7 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

is that the "but not UnicodeIDContinue" in the spec?

Yes. Keep in mind that's only there for the non-Annex B grammar, i.e. the one which is not used in actual implementations. (The Annex B variant does not have that restriction.)

mysticatea

comment created time in 7 hours

created repositorymattn/cloudflare-pages-example

created time in 7 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

hm... is that the "but not UnicodeIDContinue" in the spec? i must have a bug in engine262

mysticatea

comment created time in 7 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

@devsnek That's right in Annex B. But it's a syntax error in the spec core because the sequence \ k is not allowed.

mysticatea

comment created time in 7 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

I think this is correct as specified. The first pass will parse \k<foo> as the atoms k < f o o >, not a syntax error.

mysticatea

comment created time in 7 hours

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

Yes, it skips the second pass if the first pass had a syntax error, and \k in the first pass is a syntax error.

Maybe, should both the N parameter and two passes parsing move to Annex B? Those look to be for Annex B behaviors.

mysticatea

comment created time in 8 hours

MemberEvent

issue commenttc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

It's a syntax error on the first pass, I agree, but that means that it will re-parse with the N parameter set, and when parsing with the N parameter we have the production AtomEscape :: k GroupName, which matches \k<foo> as in this example. Since it parses successfully on the second pass, it's allowed.

mysticatea

comment created time in 10 hours

startedmaykbrito/mini-video-me

started time in 10 hours

startedwbkd/react-flow

started time in 10 hours

startedGoogleChromeLabs/squoosh

started time in 10 hours

issue openedtc39/ecma262

Regular expression `/(?<foo>A)\k<foo>/` (without `u` flag) is a syntax error

<!-- Thank you for reporting a possible bug in ECMA-262.

If this is a bug with a specific implementation of ECMA-262, such as a JavaScript engine or a browser, please report it on their bug tracker instead.

eshost is a tool to run the same code on many JS engines to compare the output.

To set up eshost:

  1. $ npm i -g eshost-cli jsvu
  2. $ jsvu
  3. $ eshost --configure-jsvu

Running eshost:

Use -x to evaluate multiple statements: $ eshost -s -x "const a = 1 + 1; print(a);"

Or -e to evaluate a single expression: $ eshost -s -e "1 + 1"

Paste the output of eshost into the box below. -->

Description: Adding 1 and 1 is two, but it should be...

From https://github.com/mysticatea/regexpp/issues/23.

This is about /(?<foo>A)\k<foo>/ without u flag and without Annex B.

As a result, named capturing groups without u flag are always a syntax error.

I think IdentityEscape requires [~N] k or something like that in order to allow named capturing groups with no u flag.

eshost Output:

(I'm not sure about the environment without Annex B)

created time in 10 hours

release riot/riot

v5.4.5

released time in 15 hours

pull request commenttc39/ecma262

Editorial: Define required internal slots in `CreateBuiltinFunction` steps

It's still the case (as it has been since CreateBuiltinFunction was introduced) that if the function being created is an ordinary function object, CreateBuiltinFunction doesn't say how most of its internal slots are initialized. Without trying to 'fix' that shortcoming, we could maybe at least acknowledge it in a Note. E.g.:

NOTE: If func is an ECMAScript function object, it has many other internal slots that must be initialized, but this operation does not address how that happens.

With or without that, I think this PR is somewhat clearer than the status quo about internal slots of built-ins.

ExE-Boss

comment created time in 19 hours

created repositoryJamesHenry/parallel-bash-commands

:sparkles: A Github Action to coordinate executing a list of bash commands in parallel and waiting for them all to complete

created time in 20 hours

created repositorymattn/tensorflow-inference

created time in 20 hours

release sindresorhus/trash

v7.2.0

released time in a day

release sindresorhus/cp-file

v9.1.0

released time in a day