新增: - backend/venv/ - Python 虚拟环境 - backend/start.sh - 启动脚本(使用虚拟环境) - backend/requirements.txt - 依赖列表 - .gitignore - 忽略虚拟环境和缓存文件 说明: - 每个项目使用独立虚拟环境 - 避免依赖冲突 - 启动脚本自动创建和激活虚拟环境
21 lines
527 B
JavaScript
21 lines
527 B
JavaScript
'use strict';
|
|
|
|
var $SyntaxError = require('es-errors/syntax');
|
|
var callBound = require('call-bound');
|
|
|
|
var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true);
|
|
|
|
// https://262.ecma-international.org/15.0/#sec-thissymbolvalue
|
|
|
|
module.exports = function ThisSymbolValue(value) {
|
|
if (typeof value === 'symbol') {
|
|
return value;
|
|
}
|
|
|
|
if (!$SymbolValueOf) {
|
|
throw new $SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object');
|
|
}
|
|
|
|
return $SymbolValueOf(value);
|
|
};
|