Skip to content

Commit 8857502

Browse files
fix: fixed globals whitelist
1 parent 5319992 commit 8857502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/template-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@ Unless you have a "someattr" property in your instance, your code won't work.
206206

207207
#### JavaScript Expressions
208208

209-
Template expressions are sandboxed and only have access to a [whitelist of globals](TODO:https://github.com/vuejs/vue/blob/v2.6.10/src/core/instance/proxy.js#L9) such as `Math` and `Date`. You should not attempt to access user defined globals in template expressions.
209+
Template expressions are sandboxed and only have access to a [whitelist of globals](https://github.com/vuejs/vue-next/blob/master/packages/shared/src/globalsWhitelist.ts#L3) such as `Math` and `Date`. You should not attempt to access user defined globals in template expressions.

0 commit comments

Comments
 (0)