2

I'm using puppeteer-sharp and here is my browser creation code

Browser browser = await Puppeteer.LaunchAsync(new LaunchOptions {
    Headless = false,
    Args = new[] {
    "--js-flags=\"--harmony\"",
    "--flag-switches-begin",
    "--enable-features=javascript-harmony",
    "--enable-features=ExperimentalJavaScript",
    "--enable-javascript-harmony",
    "--flag-switches-end",
  }
});

from that answer I read that --harmony V8 argument is enough for the needed flag to be enabled, but it isn't.

Although the arguments are passed
enter image description here


Flag is still not enabled


enter image description here


P.S. --enable-features=ExperimentalJavaScript, --enable-features=javascript-harmony and --enable-javascript-harmony I added myself making them by analogy to 1 2, not sure if these are correct usages (didn't found any documentation on this)

I am also unable to set flags when running google-chrome from command line google-chrome-stable --args --flag-switches-begin --enable-features=javascript-harmony --flag-switches-end

IC_
  • 1,624
  • 1
  • 23
  • 57

0 Answers0