Skip to content

GOOS=js set -sENVIRONMENT=web,worker#1143

Merged
xushiwei merged 1 commit intogoplus:mainfrom
visualfc:js
Jun 9, 2025
Merged

GOOS=js set -sENVIRONMENT=web,worker#1143
xushiwei merged 1 commit intogoplus:mainfrom
visualfc:js

Conversation

@visualfc
Copy link
Member

@visualfc visualfc commented Jun 9, 2025

generate main.js

// Determine the runtime environment we are in. You can customize this by
// setting the ENVIRONMENT setting at compile time (see settings.js).

// Attempt to auto-detect the environment
var ENVIRONMENT_IS_WEB = typeof window == 'object';
var ENVIRONMENT_IS_WORKER = typeof WorkerGlobalScope != 'undefined';
// N.b. Electron.js environment is simultaneously a NODE-environment, but
// also a web environment.
var ENVIRONMENT_IS_NODE = typeof process == 'object' && typeof process.versions == 'object' && typeof process.versions.node == 'string' && process.type != 'renderer';
var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;

@codecov
Copy link

codecov bot commented Jun 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.64%. Comparing base (dade77d) to head (6fbc5c6).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
internal/crosscompile/cosscompile.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1143   +/-   ##
=======================================
  Coverage   86.64%   86.64%           
=======================================
  Files          29       29           
  Lines        7343     7343           
=======================================
  Hits         6362     6362           
  Misses        914      914           
  Partials       67       67           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xushiwei xushiwei merged commit ffaac95 into goplus:main Jun 9, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants